#include <iostream>
#include <list>
using namespace std;
int main()
{
	list<int> l;
	int n; cin >> n;
	while (n--)
	{
		int tmp; cin >> tmp;
		l.push_back(tmp);
	}
	int tgt, jug = 0;
	while (cin >> tgt)
	{
		if(jug) cout << endl; jug = 1;
		auto it = l.begin();
		int index = 1;
		while (it != l.end() && *it != tgt)
		{
			it++;
			index++;
		}
		if (it == l.end()) cout << "no";
		else cout << index;
	}
	return 0;
}